using UnityEngine.SceneManagement; int currentSceneIndex = SceneManager.GetActiveScene().buildIndex; if(currentSceneIndex<SceneManager.sceneCount-1) { SceneManager.LoadScene(currentSceneIndex + 1); }